'''
Created on 2011-01-06

@author: Michal Kolodziejski
'''


'''
Klasa slowa
'''
class Word(object):

    def __init__(self, word):
        self.word=word
        self.count=0
        self.documentsContainingCount=0
        self.index = -1

    
    def incrementCount(self):
        self.count+=1
        
    def incrementDocumentsContainingCount(self):
        self.documentsContainingCount+=1

    def getWord(self):
        return self.word
    
    def getCount(self):
        return self.count
    
    def getDocumentsContainingCount(self):
        return self.documentsContainingCount

    def getIndex(self):
        return self.index

    def setIndex(self, index):
        self.index = index


    def __eq__(self, other):
        if self.word == other.word:
            return True
        return False
    
    def __ne__(self, other):
        if self.word != other.word:
            return True
        return False
    